cmake_minimum_required(VERSION 3.5)

enable_language(C CXX)
set(SRC 
"${CMAKE_CURRENT_SOURCE_DIR}/main.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/App.h"
"${CMAKE_CURRENT_SOURCE_DIR}/App.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/log.h"
"${CMAKE_CURRENT_SOURCE_DIR}/glad/glad.c"
"${CMAKE_CURRENT_SOURCE_DIR}/shader/Shader.h"
"${CMAKE_CURRENT_SOURCE_DIR}/shader/Shader.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/model/model.h"
"${CMAKE_CURRENT_SOURCE_DIR}/model/model.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/model/mesh.h"
"${CMAKE_CURRENT_SOURCE_DIR}/model/mesh.cpp"
)
add_definitions(-DRES_FILE_PATH="${CMAKE_CURRENT_SOURCE_DIR}/res/")
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/shader/)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/model/)

add_executable(opengl ${SRC})
target_link_libraries(opengl glfw fmt imgui assimp glm)